package me.blog.whiteday910.smartscore.Main;


import me.blog.whiteday910.smartscore.R;
import me.blog.whiteday910.smartscore.Menu01.CreateScoreActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity
{
	Button mainBtn01_CreateScore;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);		
		
		mainBtn01_CreateScore = (Button)findViewById(R.id.mainBtn01_CreateScore);
		
		
		View.OnClickListener listener = new OnClickListener()
		{
			
			@Override
			public void onClick(View v)
			{
				Intent intent = null;
				if(v.equals(mainBtn01_CreateScore))
				{
					intent =new Intent(MainActivity.this, CreateScoreActivity.class);
				}
				
				
				startActivity(intent);
				
			}
		};
		
		mainBtn01_CreateScore.setOnClickListener(listener);
	}
}
